import request from '@/utils/request'
export function login(data) {
  return request({
      url: '/api/sys/login',
      method: 'post',
      data
    })
}

export function userProfile() {
  return request({
    url: '/api/sys/profile',
    method: 'post',
  })
}

export function userInfo(id) {
  return request({
    url: '/api/sys/user/' + id,
    method: 'get',
  })
}

export function getInfo(token) {
}
export function logout() {
}

// 获取某个用户的信息
export function getUserDetailById(id) {
  return request({
    url: `/api/sys/user/${id}`
  })
}